-- Copyright 2002-2007.  Adobe Systems, Incorporated.  All rights reserved.

tell application "Adobe Photoshop CS3"
	activate
	trim current document basing trim on top left pixel with top trim and bottom trim without left trim and right trim
end tell